<?php
$cb = new ConfigurationBundleFactory('ycb.conf');
$dim = "property=sampleapp";
call($cb, $dim);
$dim = "property=xxx";
call($cb, $dim);

function call($cb, $dim) {

    echo "$dim\n";
    $bundle = $cb->getFromFile("delta.yml",$dim);
    $result = $bundle->getValue("lightyear",YCB_SUB_KEY_STRUCT);
    for ($i = 1; $i <= 4; $i++) {
        $key = "level$i";
        if(array_key_exists($key, $result)) {
            echo "$key = $result[$key]\n";
        } else {
            echo "key:$key is not exist.\n";
        }
    }
    echo "====\n";
    var_dump($bundle->getValue("lightyear.level2"));
    var_dump($bundle->getKeys());

}